import { createStore } from 'vuex'
import acsfd from 'vuex-persistedstate'
export default createStore({
  state: {
    list:[],
    fpl:[]
  },
  getters: {
   getnum(state){
      let num =0
      num=state.fpl.length
      return num
   }
  },
  mutations: {
    add(state,i){
      state.list.push(i)
    },
    del(state,i){
      state.list.splice(i, 1)
    },
    emit(state,i){
      state.list=state.list.filter((item)=>{
        return !i.includes(item);
      })
    },
  
  },
  actions: {
  },
  modules: {
  },
  plugins:[acsfd()]
})
